package com.cupk.carManageMaster.core.serviceImpl;

import com.cupk.carManageMaster.common.domain.User;
import com.cupk.carManageMaster.common.mapper.UserPermissionMapper;
import com.cupk.carManageMaster.core.service.UserPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserPermissionServiceImpl implements UserPermissionService {

    @Autowired
    private UserPermissionMapper userPermissionMapper;


    @Override
    public String getMenuPermission(User user) {
        String strings = userPermissionMapper.selectPermsByUserId(user.getId());
        return strings;
    }

}
